import { createApp } from 'vue'
// 引入清除reset的scss文件
import "@/style/reset.scss"
// 引入App组件
import App from '@/App.vue'
import HostpitalTop from "@/components/hospital_top/index.vue"
import HospitalBottom from "@/components/hospital_bottom/index.vue"

// 
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
// 注册全局图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.component("HospitalTop",HostpitalTop)
app.component("HospitalBottom",HospitalBottom)
// 用来创建应用⑩例方法 将应用实例挂载到挂载点上
import router from './router'
// 安装elementplus
import ElementPlus from "element-plus"
// 引入国际化文件
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import "element-plus/dist/index.css"
app.use(ElementPlus,{
    locale:zhCn
})
app.use(router)
app.mount('#app')
